﻿

//$(function () {


//});

//点击修改展开显示队列边框色
function change_expandborder_color(_this) {

    $(".expand_conent").each(function () {
        $(this).css({ "border": "1px solid #CCCCCC" });
    });
    $(_this).css({ "border": "1px solid #19ADFF" });
}

function clearSt(t) {
    $(t).prop("placeholder", "");
}

function onSt(t) {
    $(t).prop("placeholder", "请输入患者就诊卡号搜索");
}

function loadSimpleDocTypeHeaderStype(_this) {

    $(".items").removeClass('itemsActive');

    $(_this).addClass('itemsActive');

    $("#simple_body .panel-heading").css({
        "background": "linear-gradient(to right, #f4f4f4 2%,#19adff 2%,#19adff 2%,#19adff 100%)",
        "color": "#fff"
    });


    $("#simple_body #p_bkimg").attr("src", "../source/img/line_choose_open-up.png");
    $("#profess_body #p_bkimg").attr("src", "../source/img/line_not-choose_drop-down.png");

    $("#profess_body .panel-heading").css({
        "background": "linear-gradient(to right, #19adff 2%,#f4f4f4 2%,#f4f4f4 2%,#f4f4f4 100%)",
        "color": "#777"
    });
}

function loadProfressDocTypeHeaderStype(_this) {
    $("#_listcontent div").each(function () {
        if ($(this).prop("class") != "doctorlist_content") {
            $(this).css({ "background-color": "#ffffff" });
        }
    });
    $(_this).css({ "background-color": "#f4f4f4" });

    $("#profess_body .panel-heading").css({
        "background": "linear-gradient(to right, #f4f4f4 2%,#19adff 2%,#19adff 2%,#19adff 100%)",
        "color": "#ffffff"
    });

    $("#profess_body #p_bkimg").attr("src", "../source/img/line_choose_open-up.png");
    $("#simple_body #p_bkimg").attr("src", "../source/img/line_not-choose_drop-down.png");

    $("#simple_body .panel-heading").css({
        "background": "linear-gradient(to right, #19adff 2%,#f4f4f4 2%,#f4f4f4 2%,#f4f4f4 100%)",
        "color": "#777777"
    });
}

//切换平铺列表样式
function changeOpStyle() {
    $("#doctor_expand").prop("className") == "but_doctor_expand_clicked" ?
    $("#doctor_expand").toggleClass("but_doctor_expand") :
    $("#doctor_expand").toggleClass("but_doctor_expand_clicked");

    var doclistClass = $("#doctor_list").prop("className");

    if (doclistClass == "but_doctor_list") {
        $("#doctor_list").toggleClass("but_doctor_list_clicked");
    } else {
        $("#doctor_list").toggleClass("but_doctor_list");
    }
}

//未分诊队列样式
function changeNotSplitDiaOptStyle(d,sysId) {
    if (d == 0) {
        $(".d_left_center_button").removeClass("add_notsplitDiaOpt");
        $('#sysId_'+sysId).addClass("add_notsplitDiaOpt");
        $("#but_notsplitDiaOpt").css({
            "margin-top": "10px",
            "width": "95%",
            "background-color": "#FB8133",
            "color": "#ffffff",
        });
    } else {
        $(".d_left_center_button").removeClass("add_notsplitDiaOpt");
        $("#but_notsplitDiaOpt").css({
            "margin-top": "10px",
            "width": "95%",
            "background-color": "transparent",
            "color": "#FB8133",
            "border-color": "#FB8133",
            "border": "1px solid"
        });
    }
}


//按医生排班按钮单击
function changeDocDisModel() {
    $("#but_doctorDisModel").prop("className") == "but_doctor_schedu_clicked" ?
    $("#but_doctorDisModel").toggleClass("but_doctor_schedu") :
    $("#but_doctorDisModel").toggleClass("but_doctor_schedu_clicked");
}
